package cn.mothin.frame.core.interfaces.vo;

import java.util.List;
import java.util.Map;

import cn.mothin.frame.core.bean.SearchData;

public interface IQueryPage {
	public static final String ASC = "asc";
	public static final String DESC = "desc";

	public int getFirst();

	/**
	 * 获取全部的页数
	 * 
	 * @return 页数
	 */
	public int getTotalPages();

	/**
	 * 判断是否有下一页
	 * 
	 * @return true：有；false：没有
	 */
	public boolean isHasNext();

	/**
	 * 获取下一页的页码
	 * 
	 * @return 页码
	 */
	public int getNextPage();

	/**
	 * 判断是否有前一页
	 * 
	 * @return true：有；false：没有
	 */
	public boolean isHasPre();

	public boolean isQueryForExport();

	public void setQueryForExport(boolean queryForExport);

	public String getQueryForExportContent();

	public void setQueryForExportContent(String queryForExportContent);

	/**
	 * 获取前一页的页码
	 * 
	 * @return 页码
	 */
	public int getPrePage();

	public int getPage();

	public void setPage(int page);

	public int getRows();

	public void setRows(int rows);

	public String getSort();

	public void setSort(String sort);

	public String getOrder();

	public void setOrder(String order);

	public int getTotal();

	public void setTotal(int total);

	@SuppressWarnings("rawtypes")
	public List getResult();

	@SuppressWarnings("rawtypes")
	public void setResult(List result);

	// public String Page2Json();
	public Object getPageJsonObject();

	public String modifySQL(String sql);
	

	public Map<String, SearchData> getSearch();

	public void setSearch(Map<String, SearchData> search);
}
